package com.cdp.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cdp.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 粉煤灰类型实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_flyash_type") // 对应数据库表名
public class SysFlyashType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    @TableId
    private Integer flyashTypeId;

    /** 名称 */
    private String name;

    /** 唯一标识 */
    private String id;

    /** 版本号 */
    private Integer version;

    // 软删除时间
    @TableField("delete_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;
}
